package com.xiaochen.user.mapper;

import com.xiaochen.model.entity.user.UserInfo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserInfoMapper {

    /**
     * 根据用户名(这是手机号)查询用户信息
     * @param username
     * @return
     */
    UserInfo selectByUsername(String username);

    /**
     * 添加用户
     * @param newUserInfo
     */
    void save(UserInfo newUserInfo);
}
